package org.lanqiao.tjut.chengxu05;

import java.util.Scanner;

import org.junit.Test;

public class Chengji {
	@Test
	public void test() {
		System.out.println("输入成绩：");
		Scanner input0 = new Scanner(System.in);
		int i = input0.nextInt();
		if (i >= 0 && i <= 100) {
			test1(i);

		} else {
			System.out.print("输入有误，请重");
			test();
		}

	}


	public void test1(int i) {

		if (i >= 90) {
			System.out.println("成绩为：A");
		} else if (i >= 60) {
			System.out.println("成绩为：B");
		} else {
			System.out.println("成绩为：C");
		}

	}
}
